Skip to content

Docker-in-docker: Updates docker-init with "pkill" - #711

Merged
Samruddhi Khandale (samruddhikhandale) merged 4 commits into
mainfrom
samruddhikhandale/dnd-pkill
Sep 29, 2023
Merged

Docker-in-docker: Updates docker-init with "pkill"#711
Samruddhi Khandale (samruddhikhandale) merged 4 commits into
mainfrom
samruddhikhandale/dnd-pkill

Conversation

@samruddhikhandale

@samruddhikhandale Samruddhi Khandale (samruddhikhandale) commented Sep 28, 2023

Copy link
Copy Markdown
Member

Fixes : devcontainers/images#729

When the universal image is built with latest docker-in-docker Feature, it fails to start docker daemon as containerd does not start (Reported in #671 (comment)) .The image is trying to retry the docker daemon startup, but as containerd (or/and dockerd) is not in a good state before, it fails to restart causing docker ps to fail.

find /run /var/run -iname 'docker*.pid' -delete || :
find /run /var/run -iname 'container*.pid' -delete || :

We do have these commands ^ but it simply removes the PID files, does not stop/clean the dockerd and containerd daemons

🧪 Tested these PR changes with universal:dev@sha256:b7a147f15c61f02b8220d1719431f205f65e48267ffed93e0b9c642c14cf956a image, docker ps is successful.

image

@joshspicer joshspicer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks very reasonable to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Universal] Unpin docker-in-docker Feature version

2 participants